package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.ResponseResult;
import com.example.domain.entity.Category;
import com.example.exception.FloraException;

import java.util.List;


/**
 * 分类表(Category)表服务接口
 *
 * @author makejava
 * @since 2022-11-17 21:06:06
 */
public interface CategoryService extends IService<Category> {

    IPage<Category> getCategoryPage(String name, Integer pageNum, Integer pageSize);

    List<Category> getCategoryList();

    Category addCategory(Category category) throws FloraException;

    void updateCategoryCommon(Category category) throws FloraException;

    void deleteCategory(Long id) throws FloraException;

    void updateCategoryStatus(Category category) throws FloraException;
}

